package main.java.indi.zyj.sword;

import main.java.indi.zyj.hot100.base.TreeNode;

public class MirrorTree {


    public TreeNode mirrorTree(TreeNode root) {

        if (root == null) {
            return null;
        }

        TreeNode curNode = new TreeNode(root.val);
        curNode.left = mirrorTree(root.right);
        curNode.right = mirrorTree(root.left);

        return curNode;

    }

}
